package com.woniuxy.micropermissionserver.adminmanage.service;

import com.github.pagehelper.Page;
import com.woniuxy.microcommonserver.bean.permission_hcz.Admin;
import com.woniuxy.microcommonserver.pageHelper.PageRequest;
import com.woniuxy.microcommonserver.pageHelper.TableResult;

import java.util.List;

public interface IAdminService {

    void addAdmin(Admin admin, List<Integer> roleIds);

    Admin findById(Integer id);

    Admin login(String loginName);

    TableResult<Admin> findPage(PageRequest page, Admin admin);

    List<Admin> findByParams(Admin admin);
}
